Skip to main content

Deployment

Project Extraction

  • First you have to extract the reel-boost.zip then you will get two zip files.

    • reel_boost_admin.zip
    • reel-boost-backend.zip
    • reel-boost-flutter-app.zip
  • Upload reel-boost-backend.zip to a location where you want to deploy Project using FileZilla

    • /var/www/reel-boost (This is the recommended location)
  • Install unzip to unzip the Project . Run following command to install unzip

sudo apt install unzip
unzip reel-boost-backend.zip

Configurations

  • After the extraction you will see the Project files

ENV file configurations

  • Make a .env file in the project on folder which contain package.json with following content.
DB_USERNAME="DBUser"
DB_PASSWORD="dbPass"
DB_DATABASE="reel_boost"
DB_HOST='127.0.0.1'
Port="3000"
screteKey="sdnjsdfbhdbfhrfbhjeb@dmnjaskndjksanjdknjk5^56nk5l6n5uih 89qwhe839hu3nrjan fjsd'gfmkgnjignjerik"
baseUrl="http://server_ip:port"
MEDIAFLOW=LOCAL

Server Starting

  • Open Terminal on the location where package.json is located.
  • Run following command to install dependencies
npm install
  • After successful running of npm install install global dependency to auto configure the DB related tasks by running following command.
npm install -g sequelize sequelize-cli
  • To install PM2 Globally
npm install -g pm2
  • To run server run following command within the terminal where package.json is located.
pm2 start index.js --name reel-boost

Peer Js installation

  • Install PeerJS globally
npm install -g peer
  • Run following command to run peer server on port 4001
pm2 start "peerjs --port 4001" --name "peerjs-server"

Auto restart on server reboot

  • Run following command to save all the process running on pm2
pm2 save
  • Run following command to restart all the saved processes on server restart
pm2 startup systemd
  • Run following command to see running pm2 processes
pm2 status
  • Run following command to see logs of a process
pm2  log {index}

Open webpages

Search following URL to see Admin Panel

http://{your_server_ip}:{port_on_which_server_is_running}

Docusaurus logo Docusaurus logo

A you will See this page

Docusaurus logo